$OpenBSD: patch-src_tests_Makefile_in,v 1.4 2015/06/15 09:36:42 dcoppa Exp $
--- src/tests/Makefile.in.orig	Sat May 16 22:30:44 2015
+++ src/tests/Makefile.in	Mon Jun 15 11:18:27 2015
@@ -217,7 +217,8 @@ LIBRARY_BITNESS = @LIBRARY_BITNESS@
 LIBS = \
 	$(top_builddir)/src/libopensc/libopensc.la \
 	$(top_builddir)/src/common/libscdl.la \
-	$(top_builddir)/src/common/libcompat.la
+	$(top_builddir)/src/common/libcompat.la \
+	-lpthread
 
 LIBTOOL = @LIBTOOL@
 LIPO = @LIPO@
